﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CDOP.Charts
{
    public partial class DeathByGender : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnExport_Click(object sender, EventArgs e)
        {

            Response.AddHeader("content-disposition", "attachment;filename=DetailReport.xls");
            Response.Charset = "";
            System.IO.StringWriter stringWrite = new System.IO.StringWriter();
            System.Web.UI.HtmlTextWriter htmlwrite = new HtmlTextWriter(stringWrite);
            GridView1.RenderControl(htmlwrite);
            Response.Write(stringWrite.ToString());
            Response.End();


        }

        public override void VerifyRenderingInServerForm(Control control)
        {

        }
    }
}